package com.ys.dubbo.consumer;

import com.ys.dubbo.client.dubbo.DemoDubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>@description: </p>
 *
 * @author yangshuang
 * @version 1.0
 * @date 2019/6/8 14:16
 */
@RestController
public class DemoController {

    @Autowired
    private DemoDubboService demoDubboService;

    @GetMapping(value = "sayHello")
    public void sayHello() {

        demoDubboService.sayHello();
    }
}
